﻿using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestJsonPRICH
{
    public class PeopleControl
    {
        private readonly IOptionsSnapshot<People> _snapshot;
        public PeopleControl(IOptionsSnapshot<People> snapsho)
        {
            this._snapshot = snapsho;
        }

        public void TestName()
        {
            Console.WriteLine(_snapshot.Value.Name);
            Console.WriteLine("************");
            Console.WriteLine(_snapshot.Value.Name);
        }
    }
}
